Here, you'll learn about the benefits of using
inline styling. Inline styling has the
highest precedence. If you can't change the
external style file, use inline styling to
override them all. Inline styling can be
quickly applied by directly including it
in element or tag. Inline styling doesn't require creating an additional
file for adding styles. Here, you'll learn about inline styles in a
React component. In React, inline styles are
not specified as a string. Instead, they are
specified with an object whose key is the camelCase
version of the style name, and whose value is the style
value, which is a string, Inline style
attributes, or keys, or camelCase in order to be consistent with accessing
the properties on Document Object Model or DOM
nodes from JavaScript or JS. For example,
no.style.backgroundimage. Vendor prefixes other than MS should begin with
a capital letter. That is why Webkit transition
has an uppercase W. Here, you'll learn about the drawbacks
of using inline styling. It's challenging to
identify and update the CSS changes in
inline styling. Code readability is worse in
inline style implementation. Inline styles take
more space in DOM, because all the
styles are defined internally along with
the DOM element.